<template>
  <div>
    <Return style="background: #eeeeee" txt="添加朋友"></Return>
    <div class="input">
      <van-icon v-if="search == ''" class="input_icon" name="search" />
      <!-- @focus="inputTap" -->
      <input
        type="text"
        class="inputAl"
        v-model="search"
        placeholder="系统号/手机号"
      />
    </div>
    <div class="message">我的系统号:123456</div>
    <div class="list">
      <div class="listOne" @click="tap('scan')">
        <div class="list1">
          <img src="../../../assets/images/scanIcon.png" alt="" />
        </div>
        <div class="list2">
          <span>扫一扫</span>
          <span style="color: #8e8e8e">扫描二维码名片</span>
        </div>
        <div class="list3">
          <van-icon name="arrow" />
        </div>
      </div>
      <div class="listOne" @click="tap('phone')">
        <div class="list1">
          <img src="../../../assets/images/phoneIcon.png" alt="" />
        </div>
        <div class="list2">
          <span>手机联系人</span>
          <span style="color: #8e8e8e">添加通讯录中的朋友</span>
        </div>
        <div class="list3">
          <van-icon name="arrow" />
        </div>
      </div>
      <div class="listOne" @click="tap('fujing')">
        <div class="list1">
          <img src="../../../assets/images/fujing.png" alt="" />
        </div>
        <div class="list2">
          <span>附近人</span>
          <span style="color: #8e8e8e">跟附近人打招呼</span>
        </div>
        <div class="list3">
          <van-icon name="arrow" />
        </div>
      </div>
      <div class="listOne" @click="tap('searchmen')">
        <div class="list1">
          <img src="../../../assets/images/sousuo.png" alt="" />
        </div>
        <div class="list2">
          <span>按条件查找陌生人</span>
          <span style="color: #8e8e8e">按照不同条件添加好友</span>
        </div>
        <div class="list3">
          <van-icon name="arrow" />
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import Return from "../../../components/return";
export default {
  components: {
    Return,
  },
  data() {
    return {
      search: "",
    };
  },
  methods:{
      tap(indx) {
      this.$router.push(indx);
    },
  }
};
</script>
<style scoped>
.input {
  height: 50px;
  width: 100%;
  text-align: center;
  line-height: 50px;
  position: relative;
  background: #eeeeee;
}
.input_icon {
  position: absolute;
  left: 33%;
  top: 15px;
  font-size: 18px;
}
.inputAl::-webkit-input-placeholder {
  padding-left: 5%;
}
.inputAl {
  height: 35px;
  width: 96%;
  border: none;
  text-align: center;
}
.message {
  padding-top: 5px;
  height: 50px;
  width: 100%;
  text-align: center;
  background: #eeeeee;
  font-size: 15px;
}
.listOne {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
}
.list1,
.list3 {
  width: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.list1 img {
  width: 60%;
  border-radius: 50%;
}
.list2 {
  height: 40px;
  width: 70%;
  /* margin-left: 2%; */
  display: flex;
  flex-direction: column;
}
</style>